-- GENERATED SPELL FOR [Stonescythe Ambusher] --


function spell0_16928(pUnit, Event) --@Cheap Shot,n/a--
pUnit:FullCastSpellOnTarget(31819,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16928', 5337, 1)
end

function spell1_16928(pUnit, Event) --@Desperate Defense,n/a--
pUnit:FullCastSpellOnTarget(33896,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16928', 6349, 1)
end

function Sorts_16928(pUnit, Event)
local choix_sorts_16928 = math.random(0, 1)
if choix_sorts_16928 == 0 then
pUnit:RegisterEvent('spell0_16928', 1, 1)
end
if choix_sorts_16928 == 1 then
pUnit:RegisterEvent('spell1_16928', 1, 1)
end
end

function mob16928_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16928', math.random(1500, 3000), 1)
end

function mob16928_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16928_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16928_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16928, 1, 'mob16928_Action')
RegisterUnitEvent(16928, 2, 'mob16928_Leave')
RegisterUnitEvent(16928, 3, 'mob16928_Kill')
RegisterUnitEvent(16928, 4, 'mob16928_Die')
